from  machine import Pin
import time


ledpins=[1,2,45,46]

if __name__=="__main__":
    for i in ledpins:
        Pin(i,Pin.OUT)
        Pin(i,Pin.OUT).value(0)
        
    while True:
        for i in ledpins:
            Pin(i,Pin.OUT).value(1)
            print("GPIO=",i)
            time.sleep(0.5)
            Pin(i,Pin.OUT).value(0)
            time.sleep_ms(500)
